package routers

import (
	"github.com/gin-gonic/gin"
	"gvb-server/Middlewares"
	Api "gvb-server/api"
)

func (ApiRoute) Msg(r *gin.RouterGroup) { // 传组
	ApiGroup := Api.GroupAPI.MsgApi
	{
		r.GET("/msg", Middlewares.InitMiddleware, Middlewares.Cors(), ApiGroup.Message)
		r.GET("/my-msg", Middlewares.InitMiddleware, Middlewares.Cors(), ApiGroup.MyMessage)
		r.POST("/msg", Middlewares.InitMiddleware, Middlewares.Cors(), ApiGroup.MessageCreat)
	}
}
